
function analysis( target ){
    let names = Object.getOwnPropertyNames( target );
    console.log( names );
}

analysis( Promise );

analysis( Promise.prototype );